import { createStyle } from '../uitls/config';
// 随便自定义的一个通用组件
const ContainerComponent = (config, reSize) => {
    // 方框默认高宽为 50px    
    if (!config.width) {
        config.width = 50;
    }
    if (!config.height) {
        config.height = 50;
    }
    if (!config.bgcolor) {
        config.bgcolor = '#fff';
    }
    if (reSize.width) {
        config.width = reSize.width
    }
    if (reSize.height) {
        config.height = reSize.height
    }
    const style = createStyle(config);
    return (
        <div style={style}></div>
    );
};

export default ContainerComponent;